﻿using UnityEngine;
using System.Collections;

public class startScreenLights : MonoBehaviour
{
    public float waitingTime = 1.0f;
    IEnumerator Start()
    {
        while (!StartGame.gameStart)
        {
            light.enabled = !(light.enabled); //toggle on/off the enabled property
            yield return new WaitForSeconds(waitingTime);
        }
        light.enabled = true;
        light.color = Color.green;
    }
}